package interview.segregation;/*

 */

/**
 * @ClassName Segregation
 * @Author Final
 * @Project DataStructures
 */
public class Segregation {
    public void main(String[] args) {
        a I = null;
        this.Test(I);

    }

    public void Test(a i){
        i.test1();
    }

    interface a{
        void test1();
        void test2();
        void test3();
        void test4();
        void test5();
    }

    class b implements a{

        @Override
        public void test1() {
            System.out.println("1");
        }

        @Override
        public void test2() {
            System.out.println("2");
        }

        @Override
        public void test3() {
            System.out.println("3");
        }

        @Override
        public void test4() {
            System.out.println("4");
        }

        @Override
        public void test5() {
            System.out.println("5");
        }
    }

    class c{
        public void test(b i){
            i.test1();
        }
    }

}
